home *** CD-ROM | disk | FTP | other *** search
- // Copyright (c) 1999 Macromedia. All rights reserved.
-
- var firstFrame = prompt("This command reverses a range of frames. Specify the starting frame:");
-
- if (firstFrame != null){
- // convert to Zero-based
- firstFrame--;
- var endFrame = prompt("Specify the ending frame:");
- if (endFrame != null){
- // convert to Zero-based
- endFrame--;
-
- // Count the number of frames
- // by checking the first layer (at index zero)
- var numberFrames = fw.getDocumentDOM().frames.length;
-
- var reversedFrames = endFrame - firstFrame;
-
- if (numberFrames > reversedFrames){
- // Move each frame to its new position
- fw.getDocumentDOM().currentFrameNum = firstFrame;
- for (count = firstFrame ; count <= endFrame ; count++){
- fw.getDocumentDOM().reorderFrame(endFrame, count, false);
- }
- }
- }
- }
-
-
-
-